package com.example.myapplication.adapter

import android.widget.TextView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.myapplication.R
import com.example.myapplication.bean.WifiInfoBean

class WifiInfoAdapter :BaseQuickAdapter<WifiInfoBean, BaseViewHolder>(R.layout.item_wifi_info) {

    override fun convert(holder: BaseViewHolder, item: WifiInfoBean) {
        val wifiName = holder.getView(R.id.txt_wifi_name) as TextView
        val wifiRssi = holder.getView(R.id.txt_wifi_rssi) as TextView

        wifiName.text = item.name
        wifiRssi.text = item.rssi
    }

}